/****** Object:  Stored Procedure [dbo].spThanhToanUpdate Script Date: 6/23/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spThanhToanUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spThanhToanUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		25/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spThanhToanUpdate]
(
	@MaTT nvarchar(12),
	@NgayTT datetime,
	@PhuongThucTT nvarchar(50),
	@SoTien int,
	@GhiChu nvarchar(120),
	@MaCTPX nvarchar(12)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_ThanhToan]
SET [NgayTT] = @NgayTT,
	[PhuongThucTT] = @PhuongThucTT,
	[SoTien] = @SoTien,
	[GhiChu] = @GhiChu,
	[MaCTPX] = @MaCTPX
WHERE	[MaTT] = @MaTT
GO

--GRANT EXECUTE ON [dbo].[spThanhToanUpdate] TO [sa]
--GO
